package cn.lsnu.heritage.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 非遗表
 * @TableName ic_heritage
 */
@TableName(value ="ic_heritage")
@Data
public class IcHeritage implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 申报地区
     */
    @TableField(value = "address")
    private String address;

    /**
     * 类别名称
     */
    @TableField(value = "category_id")
    private Integer categoryId;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 点击数
     */
    @TableField(value = "access_total")
    private Long accessTotal;

    /**
     * 坐标 先是纬度再是经度 47.17,-71.12
     */
    @TableField(value = "location")
    private String location;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 地级市
     */
    @TableField(value = "city")
    private String city;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}